package org.reyton.service.impl;

import org.reyton.dao.SysDictionaryDao;
import org.reyton.entity.SysDictionary;
import org.reyton.service.SysDictionaryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 数据库字典表服务实现类
 * Created by reyton on 16-12-4.
 */
@Service("sysDictionaryService")
public class SysDictionaryServiceImpl implements SysDictionaryService {
    @Resource(name = "sysDictionaryDao")
    private SysDictionaryDao sysDictionaryDao;

    public void setSysDictionaryDao(SysDictionaryDao sysDictionaryDao) {
        this.sysDictionaryDao = sysDictionaryDao;
    }

    @Override
    public List<SysDictionary> find() {
        return sysDictionaryDao.find();
    }

    @Override
    public SysDictionary findById(int id) {
        return sysDictionaryDao.findById(id);
    }


}
